import Mock, { Random } from 'mockjs'

export const list = () => {
    return Mock.mock({
        'data|19': [{
            id: () => Random.guid(),
            documentName: () => Random.string(),
            date: () => Random.date('yyyy-MM-dd HH:mm:ss'),
            username: () => Random.string(),
            department: () => Random.city(),
            authorized: () => Random.guid()
        }]
    })
}

export const detail = () => {
    return Mock.mock({
        documentName: () => Random.string(),
        date: () => Random.date('yyyy-MM-dd HH:mm:ss'),
        username: () => Random.string(),
        department: () => Random.city(),
        authorized: () => Random.guid()
    })
}
